package com.example.springboot.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EmailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EmailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayIsNull() {
            addCriterion("is_need_replay is null");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayIsNotNull() {
            addCriterion("is_need_replay is not null");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayEqualTo(Boolean value) {
            addCriterion("is_need_replay =", value, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayNotEqualTo(Boolean value) {
            addCriterion("is_need_replay <>", value, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayGreaterThan(Boolean value) {
            addCriterion("is_need_replay >", value, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayGreaterThanOrEqualTo(Boolean value) {
            addCriterion("is_need_replay >=", value, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayLessThan(Boolean value) {
            addCriterion("is_need_replay <", value, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayLessThanOrEqualTo(Boolean value) {
            addCriterion("is_need_replay <=", value, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayIn(List<Boolean> values) {
            addCriterion("is_need_replay in", values, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayNotIn(List<Boolean> values) {
            addCriterion("is_need_replay not in", values, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayBetween(Boolean value1, Boolean value2) {
            addCriterion("is_need_replay between", value1, value2, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedReplayNotBetween(Boolean value1, Boolean value2) {
            addCriterion("is_need_replay not between", value1, value2, "isNeedReplay");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNull() {
            addCriterion("is_read is null");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNotNull() {
            addCriterion("is_read is not null");
            return (Criteria) this;
        }

        public Criteria andIsReadEqualTo(Boolean value) {
            addCriterion("is_read =", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotEqualTo(Boolean value) {
            addCriterion("is_read <>", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThan(Boolean value) {
            addCriterion("is_read >", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThanOrEqualTo(Boolean value) {
            addCriterion("is_read >=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThan(Boolean value) {
            addCriterion("is_read <", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThanOrEqualTo(Boolean value) {
            addCriterion("is_read <=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadIn(List<Boolean> values) {
            addCriterion("is_read in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotIn(List<Boolean> values) {
            addCriterion("is_read not in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadBetween(Boolean value1, Boolean value2) {
            addCriterion("is_read between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotBetween(Boolean value1, Boolean value2) {
            addCriterion("is_read not between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrIsNull() {
            addCriterion("accessory_addr is null");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrIsNotNull() {
            addCriterion("accessory_addr is not null");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrEqualTo(String value) {
            addCriterion("accessory_addr =", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrNotEqualTo(String value) {
            addCriterion("accessory_addr <>", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrGreaterThan(String value) {
            addCriterion("accessory_addr >", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrGreaterThanOrEqualTo(String value) {
            addCriterion("accessory_addr >=", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrLessThan(String value) {
            addCriterion("accessory_addr <", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrLessThanOrEqualTo(String value) {
            addCriterion("accessory_addr <=", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrLike(String value) {
            addCriterion("accessory_addr like", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrNotLike(String value) {
            addCriterion("accessory_addr not like", value, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrIn(List<String> values) {
            addCriterion("accessory_addr in", values, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrNotIn(List<String> values) {
            addCriterion("accessory_addr not in", values, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrBetween(String value1, String value2) {
            addCriterion("accessory_addr between", value1, value2, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andAccessoryAddrNotBetween(String value1, String value2) {
            addCriterion("accessory_addr not between", value1, value2, "accessoryAddr");
            return (Criteria) this;
        }

        public Criteria andSendTimeIsNull() {
            addCriterion("send_time is null");
            return (Criteria) this;
        }

        public Criteria andSendTimeIsNotNull() {
            addCriterion("send_time is not null");
            return (Criteria) this;
        }

        public Criteria andSendTimeEqualTo(Date value) {
            addCriterion("send_time =", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotEqualTo(Date value) {
            addCriterion("send_time <>", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeGreaterThan(Date value) {
            addCriterion("send_time >", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("send_time >=", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeLessThan(Date value) {
            addCriterion("send_time <", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeLessThanOrEqualTo(Date value) {
            addCriterion("send_time <=", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeIn(List<Date> values) {
            addCriterion("send_time in", values, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotIn(List<Date> values) {
            addCriterion("send_time not in", values, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeBetween(Date value1, Date value2) {
            addCriterion("send_time between", value1, value2, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotBetween(Date value1, Date value2) {
            addCriterion("send_time not between", value1, value2, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendAddrIsNull() {
            addCriterion("send_addr is null");
            return (Criteria) this;
        }

        public Criteria andSendAddrIsNotNull() {
            addCriterion("send_addr is not null");
            return (Criteria) this;
        }

        public Criteria andSendAddrEqualTo(String value) {
            addCriterion("send_addr =", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrNotEqualTo(String value) {
            addCriterion("send_addr <>", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrGreaterThan(String value) {
            addCriterion("send_addr >", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrGreaterThanOrEqualTo(String value) {
            addCriterion("send_addr >=", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrLessThan(String value) {
            addCriterion("send_addr <", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrLessThanOrEqualTo(String value) {
            addCriterion("send_addr <=", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrLike(String value) {
            addCriterion("send_addr like", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrNotLike(String value) {
            addCriterion("send_addr not like", value, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrIn(List<String> values) {
            addCriterion("send_addr in", values, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrNotIn(List<String> values) {
            addCriterion("send_addr not in", values, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrBetween(String value1, String value2) {
            addCriterion("send_addr between", value1, value2, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andSendAddrNotBetween(String value1, String value2) {
            addCriterion("send_addr not between", value1, value2, "sendAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrIsNull() {
            addCriterion("revice_addr is null");
            return (Criteria) this;
        }

        public Criteria andReviceAddrIsNotNull() {
            addCriterion("revice_addr is not null");
            return (Criteria) this;
        }

        public Criteria andReviceAddrEqualTo(String value) {
            addCriterion("revice_addr =", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrNotEqualTo(String value) {
            addCriterion("revice_addr <>", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrGreaterThan(String value) {
            addCriterion("revice_addr >", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrGreaterThanOrEqualTo(String value) {
            addCriterion("revice_addr >=", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrLessThan(String value) {
            addCriterion("revice_addr <", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrLessThanOrEqualTo(String value) {
            addCriterion("revice_addr <=", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrLike(String value) {
            addCriterion("revice_addr like", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrNotLike(String value) {
            addCriterion("revice_addr not like", value, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrIn(List<String> values) {
            addCriterion("revice_addr in", values, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrNotIn(List<String> values) {
            addCriterion("revice_addr not in", values, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrBetween(String value1, String value2) {
            addCriterion("revice_addr between", value1, value2, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andReviceAddrNotBetween(String value1, String value2) {
            addCriterion("revice_addr not between", value1, value2, "reviceAddr");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(Long value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(Long value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(Long value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(Long value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(Long value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<Long> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<Long> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(Long value1, Long value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(Long value1, Long value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andMessageIdIsNull() {
            addCriterion("message_id is null");
            return (Criteria) this;
        }

        public Criteria andMessageIdIsNotNull() {
            addCriterion("message_id is not null");
            return (Criteria) this;
        }

        public Criteria andMessageIdEqualTo(String value) {
            addCriterion("message_id =", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotEqualTo(String value) {
            addCriterion("message_id <>", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdGreaterThan(String value) {
            addCriterion("message_id >", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdGreaterThanOrEqualTo(String value) {
            addCriterion("message_id >=", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdLessThan(String value) {
            addCriterion("message_id <", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdLessThanOrEqualTo(String value) {
            addCriterion("message_id <=", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdLike(String value) {
            addCriterion("message_id like", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotLike(String value) {
            addCriterion("message_id not like", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdIn(List<String> values) {
            addCriterion("message_id in", values, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotIn(List<String> values) {
            addCriterion("message_id not in", values, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdBetween(String value1, String value2) {
            addCriterion("message_id between", value1, value2, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotBetween(String value1, String value2) {
            addCriterion("message_id not between", value1, value2, "messageId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}